
import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
export const columns: BasicColumn[] = [
    
  {
    title: '用户ID',
    dataIndex: 'user_id',
    width: '80',
    fixed: '',
    align: 'left',
    auth: ['users_auth:user_id'],
    resizable: true,
  },

  {
    title: '产品类型',
    dataIndex: 'product_types',
    width: '80',
    fixed: '',
    align: 'left',
    auth: ['users_auth:product_types'],
    resizable: true,
  },

  {
    title: '显示价格',
    dataIndex: 'display_price',
    width: '80',
    fixed: '',
    align: 'left',
    auth: ['users_auth:display_price'],
    resizable: true,
  },

  {
    title: '允许的订货类型',
    dataIndex: 'order_types',
    width: '80',
    fixed: '',
    align: 'left',
    auth: ['users_auth:order_types'],
    resizable: true,
  },

  {
    title: '手动创建交货单',
    dataIndex: 'manual_delivery',
    width: '80',
    fixed: '',
    align: 'left',
    auth: ['users_auth:manual_delivery'],
    resizable: true,
  },

  {
    title: '允许的产品组',
    dataIndex: 'product_group',
    width: '80',
    fixed: '',
    align: 'left',
    auth: ['users_auth:product_group'],
    resizable: true,
  },

  {
    title: '是否批准对账差异',
    dataIndex: 'diff_approval',
    width: '80',
    fixed: '',
    align: 'left',
    auth: ['users_auth:diff_approval'],
    resizable: true,
  },

]
export const searchFormSchema: FormSchema[] = [
        
  {
    label: '产品类型',
    field: 'product_types',
    component: 'Input',
    colProps: { span: 6 },
  },

  {
    label: '用户ID',
    field: 'user_id',
    component: 'Input',
    colProps: { span: 6 },
  },

];
export const formSchema: FormSchema[] = [
  {
    field: 'id',
    label: 'id',
    component: 'Input',
    show: false
  },
  {
    component: 'Input',
    label: '用户ID',
    field: 'user_id',
    colProps: {
      span: 24
    },
    componentProps: {
      type: 'text'
    },
    itemProps: {
      labelCol: {},
      wrapperCol: {
        span: 6
      }
    }
  },
  {
    component: 'Input',
    label: '产品类型',
    field: 'product_types',
    colProps: {
      span: 24
    },
    componentProps: {
      type: 'text'
    },
    itemProps: {
      labelCol: {},
      wrapperCol: {
        span: 6
      }
    }
  },
  {
    component: 'Switch',
    label: '显示价格',
    field: 'display_price',
    colProps: {
      span: 24
    },
    componentProps: {},
    itemProps: {
      labelCol: {},
      wrapperCol: {}
    }
  },
  {
    component: 'Input',
    label: '允许的订货类型',
    field: 'order_types',
    colProps: {
      span: 24
    },
    componentProps: {
      type: 'text'
    },
    itemProps: {
      labelCol: {},
      wrapperCol: {
        span: 6
      }
    }
  },
  {
    component: 'Switch',
    label: '手动创建交货单',
    field: 'manual_delivery',
    colProps: {
      span: 24
    },
    componentProps: {},
    itemProps: {
      labelCol: {},
      wrapperCol: {}
    }
  },
  {
    component: 'Input',
    label: '允许的产品组',
    field: 'product_group',
    colProps: {
      span: 24
    },
    componentProps: {
      type: 'text'
    },
    itemProps: {
      labelCol: {},
      wrapperCol: {
        span: 6
      }
    }
  },
  {
    component: 'Switch',
    label: '是否批准对账差异',
    field: 'diff_approval',
    colProps: {
      span: 24
    },
    componentProps: {},
    itemProps: {
      labelCol: {},
      wrapperCol: {}
    }
  }
]